﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlaceOrder_Shared.Models.OrderWindow
{
    public class OrderWindowLayoutClass
    {
        public int Top { get; set; }
        public int Left { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }

        public int ChatTop { get; set; }
        public int ChatLeft { get; set; }
        public int ChatWidth { get; set; }
        public int ChatHeight { get; set; }
        public List<OrderWindowLocation> OrderWindows { get; set; } = new List<OrderWindowLocation>();
        public List<OrderWindowTsCodeVolumeConfig> Volumes { get; set; } = new List<OrderWindowTsCodeVolumeConfig>();
    }

    public class OrderWindowLocation
    {
        public int WindowID { get; set; }
        public int Top { get; set; }
        public int Left { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }
        public string TsCode { get; set; }
        public int KChartDays { get; set; }
        public int Volume { get; set; }
        public bool UpdateVolume { get; set; } = false;
    }

    public class OrderWindowTsCodeVolumeConfig
    {
        public string TsCode { get; set; }
        public int Volume { get; set; }
    }
}
